package com.syxbbs.forum.dao;

import com.syxbbs.forum.model.Board;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Mapper
public interface BoardMapper {
    int insert(Board row);

    int insertSelective(Board row);

    Board selectByPrimaryKey(Long id);

    @Transactional
    int updateByPrimaryKeySelective(Board row);

    int updateByPrimaryKey(Board row);

    //指定注解
    List<Board> selectByNum(@Param("num") Integer num);
}